package com.sakura.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 *
 * @TableName check_project
 */
@ApiModel(description = "检查项目表")
@TableName(value ="check_project")
@Accessors(chain = true)//链式编程
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CheckProject implements Serializable {
    /**
     * 项目id
     */
    @ApiModelProperty("项目id")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 项目名称
     */
    @ApiModelProperty("项目名称")
    private String name;

    /**
     * 指数最大范围
     */
    @ApiModelProperty("指数最大范围")
    private Double max;

    /**
     * 指数最小范围
     */
    @ApiModelProperty("指数最小范围")
    private Double min;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("修改时间")
    @TableField(fill=FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 图片
     */
    @ApiModelProperty("图片")
    private String image;

    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
